<?php

class user_m_user extends a_base_model_datamapper {

    public function __construct($id=null) {
        $this->table = 'users';
        $this->has_many = array(
        );
        
        $this->has_many['data_m_user'] = array(
            'class' => 'data_m_user',
            'join_other_as' => 'data',
            'join_self_as' => 'user'
        );
        $this->has_many['addresses_m_user'] = array(
            'class' => 'addresses_m_user',
            'join_other_as' => 'address',
            'join_self_as' => 'user'
        );
        
        $this->has_many['order_m_order'] = array(
            'class' => 'order_m_order',
            'join_other_as' => 'order',
            'join_self_as' => 'user'
        );

        
        parent::__construct($id);
    }
}
?>